<seed-content>
  <seed-toolbar-header>
    <seed-toolbar-title>分享</seed-toolbar-title>
    <seed-toolbar-menu></seed-toolbar-menu>
  </seed-toolbar-header>
  <!--分享导航-->
  <sharing-nav (navIndexclick)='navIndexclick($event)' [sharingNav]="sharingNavList"></sharing-nav>

  <div class="sharing-item" *ngFor="let item of sharingList">
    <!--contentType (integer, optional): 内容类型（10：资讯，20：视频，30：帖子，40：个人秀） ,-->
    <!--图文一张图-->
    <one-pic-item *ngIf="item.covers?.length==1 && item.contentType==10" [itemData]="item" (onclick)="goToTarget($event)"></one-pic-item>
    <!--图文无图或三张图-->
    <third-pic-item *ngIf="item.covers?.length!==1 && item.contentType==10" [itemData]="item"  (onclick)="goToTarget($event)"></third-pic-item>
    <!--视频或个人秀直播-->
    <video-item *ngIf="item.contentType==20 || item.contentType==40" [itemData]="item"></video-item>
    <!--帖子包括无图一张二张三张图-->
    <!--<card-item *ngIf="item.contentType==30" [itemData]="item"></card-item>-->
    <feed-item *ngIf="item.contentType==30" [feed]="item" (onclick)="goToFeedDetail($event)"></feed-item>
  </div>
  <missing-default-content *ngIf="!hasData"></missing-default-content>
  <seed-infinite-scroll (infiniteScroll)="onScroll($event)">
    <seed-infinite-scroll-content *ngIf="sharingList.length!=0"></seed-infinite-scroll-content>
  </seed-infinite-scroll>

</seed-content>
